package com.yfl.logistics.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author ${author}
 * @since 2020-06-13
 */
@TableName("t_order")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 收货地址
     */
    private String shippingAddress;

    /**
     * 收货人
     */
    private String shippingName;

    /**
     * 收货电话
     */
    private String shippingPhone;

    /**
     * 取件联系人
     */
    private String takeName;

    /**
     * 取件地址
     */
    private String takeAddress;

    /**
     * 取件电话
     */
    private String takePhone;

    /**
     * 订单状态 1 取件 2 运送中 3 完成
     */
    private Integer orderStatus;

    /**
     * 付款方式
     */
    private Long paymentMethodId;

    /**
     * 到达区域
     */
    private Long intervalId;

    /**
     * 取件方式
     */
    private Long takeMethodId;

    /**
     * 货运方式
     */
    private Long freightMethodId;

    /**
     * 订单备注
     */
    private String orderRemark;


    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }

    public String getShippingName() {
        return shippingName;
    }

    public void setShippingName(String shippingName) {
        this.shippingName = shippingName;
    }

    public String getShippingPhone() {
        return shippingPhone;
    }

    public void setShippingPhone(String shippingPhone) {
        this.shippingPhone = shippingPhone;
    }

    public String getTakeName() {
        return takeName;
    }

    public void setTakeName(String takeName) {
        this.takeName = takeName;
    }

    public String getTakeAddress() {
        return takeAddress;
    }

    public void setTakeAddress(String takeAddress) {
        this.takeAddress = takeAddress;
    }

    public String getTakePhone() {
        return takePhone;
    }

    public void setTakePhone(String takePhone) {
        this.takePhone = takePhone;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getPaymentMethodId() {
        return paymentMethodId;
    }

    public void setPaymentMethodId(Long paymentMethodId) {
        this.paymentMethodId = paymentMethodId;
    }

    public Long getIntervalId() {
        return intervalId;
    }

    public void setIntervalId(Long intervalId) {
        this.intervalId = intervalId;
    }

    public Long getTakeMethodId() {
        return takeMethodId;
    }

    public void setTakeMethodId(Long takeMethodId) {
        this.takeMethodId = takeMethodId;
    }

    public Long getFreightMethodId() {
        return freightMethodId;
    }

    public void setFreightMethodId(Long freightMethodId) {
        this.freightMethodId = freightMethodId;
    }

    public String getOrderRemark() {
        return orderRemark;
    }

    public void setOrderRemark(String orderRemark) {
        this.orderRemark = orderRemark;
    }

    @Override
    public String toString() {
        return "Order{" +
        "orderId=" + orderId +
        ", userId=" + userId +
        ", customerId=" + customerId +
        ", shippingAddress=" + shippingAddress +
        ", shippingName=" + shippingName +
        ", shippingPhone=" + shippingPhone +
        ", takeName=" + takeName +
        ", takeAddress=" + takeAddress +
        ", takePhone=" + takePhone +
        ", orderStatus=" + orderStatus +
        ", paymentMethodId=" + paymentMethodId +
        ", intervalId=" + intervalId +
        ", takeMethodId=" + takeMethodId +
        ", freightMethodId=" + freightMethodId +
        ", orderRemark=" + orderRemark +
        "}";
    }
}
